package com.misakyanls.examples;

class Letter {
	char c;
}

public class ParameterPass {

	static void f(Letter y) {
		Letter tmp = new Letter();
	    tmp.c = 't';
		y = tmp;
		y.c = 'z';
		System.out.println("tmp: " + y.c);
	}

	public static void main(String[] args) {
		Letter x = new Letter();
		x.c = 'a';
		System.out.println("1: x.c: " + x.c);
		f(x);
		System.out.println("2: x.c: " + x.c);
	}

}
